package com.btkjgc.models;
// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * CarAccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "car_account_t")
@DynamicUpdate(true)
@DynamicInsert(true)
public class CarAccount extends Base implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Integer accountid;
     private Integer carid;
     private Integer del;
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
     private Date createdate;
     private Integer cartypeid;
     private String carbrand;
     private Integer self;
     private String unbindreason;
     @DateTimeFormat(pattern = "yyyy-MM-dd")
     private Date unbinddate;

   
    // Property accessors

    @Id  
 	@Column(name="id",unique=true)  
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountid() {
        return this.accountid;
    }
    
    public void setAccountid(Integer accountid) {
        this.accountid = accountid;
    }

    public Integer getCarid() {
        return this.carid;
    }
    
    public void setCarid(Integer carid) {
        this.carid = carid;
    }

    public Integer getDel() {
        return this.del;
    }
    
    public void setDel(Integer del) {
        this.del = del;
    }

    public Date getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getCartypeid() {
        return this.cartypeid;
    }
    
    public void setCartypeid(Integer cartypeid) {
        this.cartypeid = cartypeid;
    }

    public String getCarbrand() {
        return this.carbrand;
    }
    
    public void setCarbrand(String carbrand) {
        this.carbrand = carbrand;
    }

    public Integer getSelf() {
        return this.self;
    }
    
    public void setSelf(Integer self) {
        this.self = self;
    }

	public String getUnbindreason() {
		return unbindreason;
	}

	public void setUnbindreason(String unbindreason) {
		this.unbindreason = unbindreason;
	}

	public Date getUnbinddate() {
		return unbinddate;
	}

	public void setUnbinddate(Date unbinddate) {
		this.unbinddate = unbinddate;
	}
	
}